package demo.exception;

/**
 * @Auther: hjy(lc))
 * @Date: 2022/8/8-08-08-16:27
 * @Description：demo.exception
 */
public class DivisionByZero {
    public static void main(String[] args) {
        try{
            division();
        }catch (ArithmeticException e){
            e.printStackTrace();
        }

    }

    public static void division() throws ArithmeticException{
        int result = 10 /0;
    }
}
